Page({
  data: {
    userName: "张三"
  },

  testTap(event) {
    // event 接收到传递的参数，里面有很多值，找出自己传的
    console.log(event)
    console.log(event.currentTarget.dataset.aaa)
    console.log(event.currentTarget.dataset.bbb)
    console.log(event.currentTarget.dataset.ccc)
    wx.showToast({
      title: 'ok',
    })
  },


  testMarkTap(event) {
    console.log('小程序事件传参 mark', event)
    console.log(event.mark.ccc)
  },
  bindViewTap: function (e) {
    console.log(e)
    e.mark.myMark === "AAAAA" // true
    e.mark.anotherMark === "BBBBB" // true
  },
})